package edu.study.common.model;

import edu.study.api.common.dto.BaseDto;
import lombok.Getter;
import lombok.Setter;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;

@Getter
@Setter
public abstract class BaseDO extends BaseDto {

    @Id
    private String id = new ObjectId().toHexString();

    /**
     * 备注
     */
    private String remarks;

    /**
     *
     */
    private String ext;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 修改人
     */
    private String modifier;

    private Boolean isDelete = false;
    private Long deleteTimeStamp;
    private Long createTimeStamp = System.currentTimeMillis();
    private Long updateTimeStamp = createTimeStamp;
}
